#ifndef DIA_ADDFOOD_H
#define DIA_ADDFOOD_H

#include "foodsql.h"
#include <QDialog>

namespace Ui {
class Dia_AddFood;
}

class Dia_AddFood : public QDialog
{
    Q_OBJECT

public:
    explicit Dia_AddFood(QWidget *parent = nullptr);
    ~Dia_AddFood();

    void setType(bool isAdd, FoodInfo info={});
private slots:
    void on_btn_save_clicked();

    void on_btn_cancel_clicked();

private:
    Ui::Dia_AddFood *ui;
    bool m_isAdd;
    FoodInfo m_info;
};

#endif // DIA_ADDFOOD_H
